import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
@Entity("t_v2_mold_production_detail")
export class Product {
  @PrimaryGeneratedColumn({ type: "bigint" })
  id: string;

  @Column("bigint", { name: "mold_id", comment: "模具id" })
  moldId: string;

  @Column("bigint", { name: "oss_id", nullable: true, comment: "产品图OssId" })
  ossId: string | null;

  @Column("varchar", {
    name: "production_name",
    nullable: true,
    comment: "产品名称",
    length: 100,
  })
  productionName: string | null;

  @Column("varchar", {
    name: "mold_num",
    nullable: true,
    comment: "出模数量",
    length: 255,
  })
  moldNum: string | null;

  @Column("varchar", {
    name: "production_material",
    nullable: true,
    comment: "产品材质",
    length: 250,
  })
  productionMaterial: string | null;

  @Column("varchar", {
    name: "production_toner",
    nullable: true,
    comment: "色粉/色母信息",
    length: 250,
  })
  productionToner: string | null;

  @Column("varchar", {
    name: "production_ins",
    nullable: true,
    comment: "产品镶件",
    length: 250,
  })
  productionIns: string | null;

  imageUrl: string | undefined;
}